package com.oasystem.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public final class Demo { 
    private static Properties prop ;
    static { 
        prop = new Properties(); 
        InputStream in = Object.class.getResourceAsStream("/backupconfig.properties"); 
        try { 
            prop.load(in); 
        } catch (IOException e) { 
            e.printStackTrace(); 
        } 
    } 

    public static String getParam(String key) { 
        return prop.getProperty(key); 
    } 

    public static void main(String args[]){ 
    	System.out.println(Demo.getParam("username"));
    } 
}